package com.china08.yxyapi.entity.db.sws;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * 模块
 * 
 * @author Ertao.Fang
 * 
 */
@Entity
@Table(name = "sws_module", catalog = "yxy_sws", uniqueConstraints = {
        @UniqueConstraint(columnNames = { "module_name" }) })
public class SwsModule extends BaseEntityNoId {

    @Id
    @Column(name = "id")
    private String id;
    /**
     * 
     */
    private static final long serialVersionUID = -1073740918139394900L;

    /**
     * 模块名称
     */
    @Column(name = "module_name")
    private String modouleName;

    /**
     * 模块图片
     */
    @Column(name = "module_image")
    private String modouleImage;

    /** 排列序号 **/
    @Column(name = "order_num", columnDefinition = "INT(11) DEFAULT 100", nullable = false)
    private Integer orderNum = 100;

    public String getModouleName() {
        return modouleName;
    }

    public void setModouleName(String modouleName) {
        this.modouleName = modouleName;
    }

    public String getModouleImage() {
        return modouleImage;
    }

    public void setModouleImage(String modouleImage) {
        this.modouleImage = modouleImage;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}
